{include file='head'/}
<body class="pear-container">
<div class="layui-card">
  <div class="layui-card-body">
    <div class="layui-btn-group">
      <a class="layui-btn layui-btn-normal layui-btn-sm"
         data-open="{:__url('system/config/custom_config_add')}" data-reload="1" data-title="添加配置">
        <i class="fa fa-plus"></i> 添加配置</a>
    </div>
    <table class="layui-table">
      <thead>
      <tr class="text-c">
        <th width="50">id</th>
        <th>配置名称</th>
        <th>配置类型</th>
        <th>配置值</th>
        <th>简洁说明</th>
        <th>状态</th>
        <th width="120">操作</th>
      </tr>
      </thead>
      <tbody id="tbody">
      {volist name="data" id="vo"}
      <tr class="text-c">
        <td>{$vo.id}</td>
        <td>{$vo.name}</td>
        <td>{$vo.fieldtype}</td>
        <td>{:str_cut(htmlspecialchars($vo.value),100)}</td>
        <td>{$vo.title}</td>
        <td>{$vo.status}</td>
        <td>
          <a class="layui-btn layui-btn-sm layui-btn-normal"
             data-open="{:__url('system/config/custom_config_edit',['id'=>$vo.id])}"
             data-title="编辑配置" data-reload="1">编辑</a>
          <a class="layui-btn layui-btn-danger layui-btn-sm"
             data-delete="{:__url('system/config/custom_config_delete',['id'=>$vo.id])}"
             data-title="确定要删除此配置吗？" data-reload="1">删除</a>
        </td>
      </tr>
      {/volist}
      </tbody>
    </table>

  </div>
</div>

{include file='footer'/}
</body>
</html>
